<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/tags/unitedselect/UnitedSelect.js"></script>
<link href="${ctx}/styles/aux_window.css" rel="stylesheet" type="text/css">
<%@ include file="/commons/validation.jsp" %>
<script type="text/javascript">
	function aOnclickHandle(thiz){
		var flag = document.forms("exportForm").fireEvent("onsubmit");
		if(!flag) return false;

		var buildId = $("builds").value;
			thiz.href = "${ctx}/charge_meterDataRegisterAction.do?method=exportFile&buildingId=" + buildId;

	}
</script>
</head>

<body>
<form id="exportForm" name="exportForm" action="fd" method="post" class="required-validate">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="121"><img src="${ctx}/images/ico_Advance.gif" width="16" height="16" align="absmiddle"><span class="window_head_intext">${key.charge_meterdata_export_format}</span></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="aux_header_line_1"></td>
  </tr>
  <tr>
    <td class="aux_header_line_2"></td>
  </tr>
  <tr>
    <td class="content"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="aux_outtable_color"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">
          <tr>
            <td class="aux_intable_td1">${key.charge_meterdata_export_managerArea}：</td>
            <td class="aux_intable_require">
            <span class="td_search">
				<pms:unitedSelect id="precincts"
								  name="precincts"
								   selectText="${key.select}"
								  dataList="${precincts}"
								  optionLabel="name"
								  optionValue="keyword"
								  targetId="builds"
								  isUnited="true"
								  actionName="charge_meterDataRegisterAction"
								  className="select-one-required"
								  style="width:110px;"
								 >
				</pms:unitedSelect>
            </span>
            </td>
          </tr>
          <tr>
            <td class="aux_intable_td1">${key.charge_meterdata_export_building}：</td>
            <td class="aux_intable_require">
            <span class="td_search">
				<pms:unitedSelect id="builds"
								  name="builds"
								  dataList="${builds}"
								  optionLabel="name"
								  optionValue="keyword"
								  className="select-one-required"
								  style="width:110px;"
								  selectText="${key.select}">
				</pms:unitedSelect>
            </span>
            </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="left" class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
      <tr>

        <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_21"></td>
              <td class="buttonOffMiddle" id="btn1_22"  onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)" onBlur="btn_change(2)">
              	<a onclick="aOnclickHandle(this);">
              		<img src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom">${key.charge_meterdata_export}
              	</a>
              </td>
              <td class="buttonOffRight" id="btn1_23"></td>
            </tr>
        </table></td>
        <td class="btn_between_space"></td>
        <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_31"></td>
              <td class="buttonOffMiddle" id="btn1_32" onClick="windowClose();" onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)" onBlur="btn_change(3)">
              	<img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom">${key.cancel}</td>
              <td class="buttonOffRight" id="btn1_33"></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
</html>